package syt.dao.impl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import syt.dao.TestDAO;

import com.Test;

public class TestDAOImpl extends HibernateDaoSupport implements TestDAO {

	public void saveTest(Test test) {
		getHibernateTemplate().saveOrUpdate(test);
		//getSession().beginTransaction().commit();
	}

	public List<Test> testList() {
		List testList = getHibernateTemplate().find("from Test");
		return testList;
	}

}
